﻿using System;

namespace Luna.Core.Extensions
{
    public static class DateTimeExtension
    {
        public static DateTime ConvertToMultiplesOfFive(this DateTime value)
        {
            return new DateTime(value.Year,value.Month,value.Day,value.Hour,value.Minute-value.Minute%5,0);
        }
    }
}
